﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="List.ascx.cs" Inherits="BuXiaChu.OrderDishes.Web.Admin.Modules.Restaurant.List" %>
<%@ Register TagName="Tag" TagPrefix="PageBar" Src="~/Modules/PageBar.ascx" %>
<table>
    <tr>
        <td>
            餐厅编码
        </td>
        <td>
            名称
        </td>
        <td>
            类别
        </td>
        <td>
            所属城市
        </td>
        <td>
            地址
        </td>
        <td>
            操作
        </td>
    </tr>
    <% foreach (var item in PageDataList)
       {%>
    <tr>
        <td>
            <%= item.Id %>
        </td>
        <td>
            <%= HttpUtility.HtmlEncode(item.Name)%>
        </td>
        <td>
            <%=BuXiaChu.OrderDishes.BLL.CodeDictionary.Instance.GetCodeName(item.Category)%>
        </td>
        <td data-type="city">
            <%= item.CityId%>
        </td>
        <td>
            <%= HttpUtility.HtmlEncode(item.Address)%>
        </td>
        <td>
            <div>
                <a href="Add.aspx?id=<%=item.Id %>">修改餐馆</a> 
                <span>|</span> 
                <a href="AddDishesCat.aspx?restaurantId=<%=item.Id %>&restaurantName=<%= HttpUtility.UrlEncode(item.Name)%>">
                    增加菜品类别</a>
            </div>
            <div>
                <a href="Dishes.aspx?restaurantId=<%=item.Id %>&restaurantName=<%= HttpUtility.UrlEncode(item.Name)%>">
                    查看菜品</a> <span>|</span> <a href="AddDishes.aspx?restaurantId=<%=item.Id %>&restaurantName=<%= HttpUtility.UrlEncode(item.Name)%>">
                        增加菜品</a>
            </div>
        </td>
    </tr>
    <%} %>
</table>
<PageBar:Tag runat="server" ID="PageBarBottom" />
